home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6131 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.8 KB

  1. Path: rz.uni-karlsruhe.de!ma2s2!haible
  2. From: haible@ma2s2.mathematik.uni-karlsruhe.de (Bruno Haible)
  3. Newsgroups: comp.lang.lisp,comp.lang.c++
  4. Subject: Re: Why garbage collection?
  5. Date: 11 Feb 1996 02:17:36 GMT
  6. Organization: University of Karlsruhe, Germany
  7. Message-ID: <4fjjk0$r9m@nz12.rz.uni-karlsruhe.de>
  8. References: <4ecmfo$as9@news2.ios.com> <s08spgxh3r1.fsf@lox.ICSI.Berkeley.EDU> <823078760snz@wildcard.demon.co.uk> <4eqjlb$ig7@news.ox.ac.uk>
  9. NNTP-Posting-Host: ma2s2.mathematik.uni-karlsruhe.de
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. Keywords: gcl, clisp
  14. Originator: haible@ma2s2
  15.  
  16. Daniel Barlow <barlow@xserver.sjc.ox.ac.uk> wrote:
  17. >
  18. > I don't know lisp.  I've done little bits of elisp (but I understand that
  19. > that Doesn't Count) and I've played with scheme (actually guile), but 
  20. > that's about all.  I'd like to learn (curiosity value) but I'm
  21. > holding off until I can think of something to write in it.  And until
  22. > I have more time.  
  23.  
  24. You can write any kind of non-trivial text/data/representation processing
  25. in Lisp. But you have to wait until you have _less_ time.
  26.  
  27. For example, a couple of days ago I wrote a smallie which converts a
  28. unidiff (output of "diff -u") to the equivalent context diff (output
  29. of "diff -c3"), for readability.
  30.  
  31. First wrote in Lisp, within 2 hours. Worked and still works fine.
  32.  
  33. The rewrote it in C++. Took me more than a whole day. Mostly works,
  34. but the output contains garbled lines in rare cases. Hence the resulting
  35. program is useless unless I put several more hours of debugging into it.
  36.  
  37. Needless to say, the C++ code is three times as large than the Lisp
  38. code, and therefore doesn't reflect the overall algorithm as well.
  39.  
  40. Conclusion: The time you save by using a high-level language like Lisp and
  41. an interactive development environment is amazing. I wish to invite you:
  42. make the experience yourself, with a non-trivial program of yours.
  43.  
  44. > The limiting factor is surely not cost.  I have gcc and gcl on my 
  45. > computer; they were both entirely free.  In fact, I understand that gcl
  46. > comes precompiled as part of the popular Slackware Linux distribution.
  47. > I know of approximately one linux user who actually installed it (except
  48. > by accident).  Why the low takeup?
  49.  
  50. Maybe because gcl, as present in Slackware, is pretty spartanic:
  51. no command-line history (unless you use Emacs), CLOS not built-in,
  52. slow compiler. You should complement it with CLISP.
  53.  
  54.                    Bruno
  55.  
  56. ----------------------------------------------------------------------------
  57. Bruno Haible                            net: <haible@ilog.fr>
  58. ILOG S.A.                               tel: +33 1 4908 3585
  59. 9, rue de Verdun - BP 85                fax: +33 1 4908 3510
  60. 94253 Gentilly Cedex                    url: http://www.ilog.fr/
  61. France                                  url: http://www.ilog.com/
  62.  
  63.